package com.iplant.ams.service.po.ams.asset;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;

import java.io.Serializable;


@DBBasePO(TableName = "ams_asset_classification", CheckName = {"Code", "Name,ParentID"},
        Schemas = DBSchemas.AMS, CodeAuto = true, CodePrefix = "ZCLX-", CodeNum = 4)
public class AMSAssetClassification extends BasePO implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 父节点ID
     */

    @DBField
    public int ParentID = 0;

    /**
     * 是否有子节点
     */

    @DBField
    public int HasChild = 0;

    /**
     * 是否为默认资产分类
     */
    @DBField
    public int IsDefault = 0;

    /**
     * 默认资产分类枚举
     */
    @DBField
    @DBCondition
    public int TypeEnum = 0;

    /**
     * 资产分类(树形)
     */
    public AMSAssetClassification() {
        super();
    }

    @JsonProperty("ParentID")
    public int getParentID() {
        return ParentID;
    }

    public void setParentID(int parentID) {
        ParentID = parentID;
    }

    @JsonProperty("HasChild")
    public int getHasChild() {
        return HasChild;
    }

    public void setHasChild(int hasChild) {
        HasChild = hasChild;
    }

    @JsonProperty("IsDefault")
    public int getIsDefault() {
        return IsDefault;
    }

    public void setIsDefault(int isDefault) {
        IsDefault = isDefault;
    }

    @JsonProperty("TypeEnum")
    public int getTypeEnum() {
        return TypeEnum;
    }

    public void setTypeEnum(int typeEnum) {
        TypeEnum = typeEnum;
    }
}
